﻿<phone:PhoneApplicationPage 
    x:Class="QuickTasks.Views.Places.AddPlacesSettings"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
      xmlns:my="clr-namespace:Microsoft.Advertising.Mobile.UI;assembly=Microsoft.Advertising.Mobile.UI"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
     xmlns:wb="clr-namespace:QuickTasks"
   
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="800" d:DesignWidth="480"
    shell:SystemTray.IsVisible="False" Loaded="PhoneApplicationPage_Loaded">

   
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel Orientation="Horizontal"  Grid.Row="0" Margin="12,17,0,28">
            <TextBlock x:Name="ApplicationTitle" Text="QUICK TASKS - ADDRESS SETTINGS" Style="{StaticResource PhoneTextNormalStyle}"/>
        </StackPanel>
        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
               
            </Grid.RowDefinitions>
            <StackPanel Grid.Row="0" Orientation="Vertical" >
                <toolkit:ToggleSwitch Grid.Row="0" Name="GpsLocationToggleSwitch1"  IsChecked="false" Height="115" FontSize="30" HorizontalAlignment="Left" Margin="1,0,0,0" VerticalAlignment="Top" Width="470" Checked="GpsLocationToggleSwitch1_Checked" Unchecked="GpsLocationToggleSwitch1_Unchecked" >
                    <toolkit:ToggleSwitch.Header>
                        <TextBlock Text="Set current location using GPS " FontSize="24" Foreground="White"></TextBlock>
                    </toolkit:ToggleSwitch.Header>
                    <toolkit:ToggleSwitch.Content >
                        <TextBlock Text="Off " FontSize="24" Foreground="White"></TextBlock>
                    </toolkit:ToggleSwitch.Content>
                </toolkit:ToggleSwitch>
                <toolkit:ToggleSwitch Grid.Row="1" Name="toggleswitchRunUnderLoock"  IsChecked="false" Height="115" FontSize="30" HorizontalAlignment="Left" Margin="1,0,0,0" VerticalAlignment="Top" Width="470" Checked="lockToggleSwitch_Checked" Unchecked="lockToggleSwitch_Unchecked" >
                    <toolkit:ToggleSwitch.Header>
                        <TextBlock Text="Run App Under Lock screen" FontSize="24" Foreground="White"></TextBlock>
                    </toolkit:ToggleSwitch.Header>
                    <toolkit:ToggleSwitch.Content >
                        <TextBlock Text="Off " FontSize="24" Foreground="White"></TextBlock>
                    </toolkit:ToggleSwitch.Content>
                </toolkit:ToggleSwitch>
                <StackPanel Orientation="Horizontal" Height="80">
                <TextBlock x:Name="Range"  Text="Within range of" FontSize="25" Margin="15,30,0,0" />
                <TextBox x:Name="TbxRange"  InputScope="Number" Height="65" Width="100" Margin="0,0,0,0" LostFocus="TbxRange_LostFocus"/>
                    <TextBlock x:Name="met"  Text="meters" FontSize="25"  Margin="0,15,0,0" Height="43" Width="75" />
                <TextBlock Text="Range cannot be less than 20"  FontSize="20" Foreground="Red"  Margin="-230,-15,0,0" x:Name="tblkRangeValidation" Visibility="Collapsed"/>
                </StackPanel>
            </StackPanel>
                    
        </Grid>
        <StackPanel Name="adstackpanel" Grid.Row="2" VerticalAlignment="Bottom" Margin="-15,32,0,0"></StackPanel>
    </Grid>
 
   
</phone:PhoneApplicationPage>
